import request from '../../utils/request';

// 文章关注管理相关 API

// 关注文章
export const addArticleFollow = (data: any) => {
    return request({
        url: '/member/api/article-follow/add',
        method: 'post',
        data
    });
};

// 检查是否已关注文章
export const checkArticleFollow = (params: any) => {
    return request({
        url: '/member/api/article-follow/check',
        method: 'get',
        params
    });
};

// 获取关注文章数量
export const getArticleFollowCount = (params: any) => {
    return request({
        url: '/member/api/article-follow/count',
        method: 'get',
        params
    });
};

// 分页查询文章关注列表
export const getArticleFollowPage = (params: any) => {
    return request({
        url: '/member/api/article-follow/page',
        method: 'get',
        params
    });
};

// 取消关注文章
export const removeArticleFollow = (data: any) => {
    return request({
        url: '/member/api/article-follow/remove',
        method: 'post',
        data
    });
};
